package com.eportal.dao;

import com.eportal.entity.TUserMsgEntity;
import com.framework.jqgrid.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TUserMsgEntityMapper extends MyMapper<TUserMsgEntity> {

    /**
     * 根据 relateMsgId 查询集合
     * @author Saber
     * @Date 2017/8/22 下午6:14
     * @param relateMsgId   关联T033_COMMUNITY_MSG的sid
     * @return
     */
    List<TUserMsgEntity> getListByRelateMsgId(@Param("relateMsgId") Long relateMsgId);

    /**
     * 根据 relateMsgId 删除
     * @author Saber
     * @Date 2017/8/22 下午6:19
     * @param relateMsgId   关联T033_COMMUNITY_MSG的sid
     * @return
     */
    int deleteByRelateMsgId(@Param("relateMsgId") Long relateMsgId);
}
